Link with libatomic on architectures where it is needed
authorAdrian Bunk <bunk@debian.org>
Mon, 7 Feb 2022 21:58:54 +0000 (23:58 +0200)
committerAdrian Bunk <bunk@debian.org>
Mon, 7 Feb 2022 21:58:54 +0000 (23:58 +0200)
debian/rules

index 5fec826d2a1196277ca4e93b9b886fccb553c606..b33ed65e4cc178bf378cca946e448af62d8e955e 100755 (executable)
@@ -15,6 +15,10 @@ else
 SUPPORTS_VULKAN = OFF
 endif
 
+ifneq (,$(filter $(DEB_HOST_ARCH), armel m68k mipsel powerpc sh4))
+  export DEB_CXXFLAGS_MAINT_APPEND += -Wl,--no-as-needed -latomic -Wl,--as-needed
+endif
+
 %:
        dh $@